package com.liveinstars.api.im;

import com.liveinstars.api.im.vo.ChatGroupMsgReportVO;
import com.liveinstars.api.im.query.ReportQuery;
import com.liveinstars.api.im.vo.ChatGroupMsgReportRecordVO;
import com.onepiece.shipelves.common.Result;
import com.onepiece.shipelves.common.vo.Page;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author: zhouze
 * @date: 2020/3/6
 */
@FeignClient("im")
public interface ReportApi {

    /**
     * 举报圈子消息接口
     * @param vo
     */
    @PostMapping("/reportChatGroupMsg")
    Result reportChatGroupMsg(@RequestBody ChatGroupMsgReportVO vo);

    /**
     * 举报记录分页查询
     * @param query
     * @return
     */
    @PostMapping("/pageReportByQuery")
    Result<Page<ChatGroupMsgReportRecordVO>> pageByQuery(@RequestBody ReportQuery query);

    /**
     * 举报信息处理
     * @param id
     * @param status
     */
    @PostMapping("/reportHandle")
    Result reportHandle(@RequestParam("id")Long id, @RequestParam("status")Integer status);
}
